/*
 * @(#)SysUserDefinedIndexDetail.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.framework.bean;


/**
  SysUserDefinedIndexDetail.java

  This class is the serializable bean reflecting business logic uses.

    @author           Phoebe Wong
    @company          DCIVision Limited
    @creation date    04/08/2003
    @version          $Revision: 1.11 $
*/

public class SysUserDefinedIndexDetail extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.11 $";

  static final long serialVersionUID = -4111397126003436819L;

  /** The constant which used to define the the fields' type available in User Defined Index Detail. */
  public final static String DATE_FIELD = "D";
  public final static String STRING_FIELD = "S";
  public final static String NUMBER_FIELD = "N";
  public final static String FIELD_TYPE_SELECT_DATABASE = "SDB";

  private Integer userDefinedID = null;
  private String fieldName = null;
  private String mandatory = null;
  
  private String valueSuggest = null;
  
  private String delete = null;
  private String fieldType = null;
  private String reference = null;
  private String sqlStat = null;
  private String fieldValue = null;
  private String defaultValue = null;
  private Integer displaySeq = null;
 
  public SysUserDefinedIndexDetail() {
    super();
  }

  public Integer getUserDefinedID() {
    return(this.userDefinedID);
  }

  public void setUserDefinedID(Integer userDefinedID) {
    this.userDefinedID = userDefinedID;
  }

  public String getFieldName() {
    return(this.fieldName);
  }

  public void setFieldName(String fieldName) {
    this.fieldName = fieldName;
  }

  public String getMandatory() {
    return(this.mandatory);
  }

  public void setMandatory(String mandatory) {
    this.mandatory = mandatory;
  }

  public String getFieldType() {
    return(this.fieldType);
  }

  public void setFieldType(String fieldType) {
    this.fieldType = fieldType;
  }

  public String getReference() {
    return(this.reference);
  }

  public void setReference(String reference) {
    this.reference = reference;
  }

  public String getSqlStat() {
    return(this.sqlStat);
  }

  public void setSqlStat(String sqlStat) {
    this.sqlStat = sqlStat;
  }
  
  public String getFieldValue() { 
    return(this.fieldValue);
  }

  public void setFieldValue(String fieldValue) { 
    this.fieldValue = fieldValue;
  }

  public String getDefaultValue() { 
    return(this.defaultValue);
  }
  
  public Integer getDisplaySeq() {
    return(this.displaySeq);
  }

  public void setDisplaySeq(Integer displaySeq) {
    this.displaySeq = displaySeq;
  }

  public void setDefaultValue(String defaultValue) { 
    this.defaultValue = defaultValue;
  }  
  public Object clone() {
    SysUserDefinedIndexDetail obj = new SysUserDefinedIndexDetail();
    obj.setID(this.getID());
    obj.setUserDefinedID(this.getUserDefinedID());
    obj.setFieldName(this.getFieldName());
    obj.setMandatory(this.getMandatory());
    
    obj.setValueSuggest(this.getValueSuggest());
    
    obj.setFieldType(this.getFieldType());
    obj.setReference(this.getReference());
    obj.setSqlStat(this.getSqlStat());
    obj.setRecordStatus(this.getRecordStatus());
    obj.setUpdateCount(this.getUpdateCount());
    obj.setCreatorID(this.getCreatorID());
    obj.setCreateDate(this.getCreateDate());
    obj.setUpdaterID(this.getUpdaterID());
    obj.setUpdateDate(this.getUpdateDate());
    obj.setCreatorName(this.getCreatorName());
    obj.setUpdaterName(this.getUpdaterName());
    obj.setDisplaySeq(this.getDisplaySeq());
    return(obj);
  }

public String getDelete() {
	return delete;
}

public void setDelete(String delete) {
	this.delete = delete;
}

public String getValueSuggest() {
	return valueSuggest;
}

public void setValueSuggest(String valueSuggest) {
	this.valueSuggest = valueSuggest;
}
}
